//
//  NSString+ChangeChange.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/2/17.
//  Copyright © 2016年 game. All rights reserved.
//

#import "NSString+ChangeChange.h"

@implementation NSString (ChangeChange)
+(NSString *)ChangeChange:(NSString *)text{
    
        NSError* error = NULL;
        
        NSRegularExpression* regex = [NSRegularExpression regularExpressionWithPattern:@"\n"                                                                               options:0
                                                                                 error:&error];
        
        
        text = [regex stringByReplacingMatchesInString:text
                                               options:0
                                                 range:NSMakeRange(0, text.length)
                                          withTemplate:@"</chengge>"];
        
        

    return text;
}

@end
